<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>添加</title>
</head>
	<base href="<?php echo base_url().'views/style/'; ?>" />
	<link href="./css/media.css" rel="stylesheet">
	<link href="./css/seller_center.css" rel="stylesheet">
	<script src="./js/jquery-1.8.2.min.js"></script>
	<script src="./js/myconfirm.js"></script>
	<script src="./js/media.js"></script>
	<script src="./js/validate.js"></script>
    <style>
     table.table1 tr th{
     	text-align: center;
     	vertical-align: top;
     }
     .ncsc-picture-list {
     	margin: 0 0;
     }
    </style>
<body>
	<div class="wrap">
	   <div class="menu_list">
	    <ul>
		  <li><a href="<?php echo site_url('regisiter/index').'/?ace='.rand(100000,999999); ?>"> 内容列表 </a></li>
		  <li><a href="javascript:;" class='action'>查看</a></li> 
		</ul> 
	   </div>
	   <form action="<?php echo site_url('regisiter/reg_edit/'.$one['re_number']); ?>" method="post">
		   	<table class="table1 hd-form">

		   	  <tr>
		   	    <th class='w100'>姓名</th>
		   		<td>
		   		   <input type="text" name="re_name" value="<?php echo $one['re_name'] ?>" style="width:286px;"/>
		   		</td>
		   	 </tr>
		   	 <tr>
		   	    <th class='w100'>学号</th>
		   		<td>
		   			<input type="text" name="re_number" value="<?php echo $one['re_number'] ?>" style="width:286px;"/>
		   		</td>
		   	 </tr>  


           </table>
           <table class="table1 hd-form">
           	<thead>
           		<tr>
           			<th class='w100'>编号</th>
           			<th class='w200'>Course Code</th>
           			<th class='w200'>Course Name</th>
           			<th class='w200'>Instructor</th>
           			<th>操作</th>
           		</tr>
           	</thead>
           	<tbody>
           	<?php if(! empty($news)): ?>
           		<?php foreach ($news as $k => $v): ?>
           			<tr>
           				<th><?php echo $k+1 ?></th>
           				<th><?php echo $v['re_code'] ?></th>
           				<th><?php echo $v['re_cou_name'] ?></th>
           				<th><?php echo $v['re_instructor'] ?></th>
           				<th>
           					<a class='btn1' href="<?php echo site_url('regisiter/regisiter_check/'.$v['re_id'])."/?ace =".rand(10,10000000);?>">编辑</a>
           					<a class='btn2' href="javascript:;" onclick="obj_del(<?php echo $v['re_id']; ?>,'<?php echo site_url('regisiter/reg_del') ?>')">删除</a>
           				</th>
           			</tr>
           		<?php endforeach ?>
           	<?php endif; ?>

           	</tbody>
           </table>
	   </form>  
	</div>
	<script>
		$(function(){
		 //  $("form").validate({
		 //    re_name: {
		 //      rule: {
		 //        required: true
		 //    },
		 //    error: {
		 //       required: " 姓名不能为空! "
		 //    },
		 //    message: " 请填写姓名",
		 //    success: "正确"
		 //   },
		 //    re_number: {
		 //      rule: {
		 //        required: true
		 //    },
		 //    error: {
		 //       required: " 学号不能为空! "
		 //    },
		 //    message: " 请填写学号",
		 //    success: "正确"
		 //   },
		 //    re_code: {
		 //      rule: {
		 //        required: true
		 //    },
		 //    error: {
		 //       required: " 课号不能为空! "
		 //    },
		 //    message: " 请填写课号",
		 //    success: "正确"
		 //   },
		 //    re_cou_name: {
		 //      rule: {
		 //        required: true
		 //    },
		 //    error: {
		 //       required: " 课程名不能为空! "
		 //    },
		 //    message: " 请填写课程名",
		 //    success: "正确"
		 //   },


		 //    re_instructor: {
		 //      rule: {
		 //        required: true
		 //    },
		 //    error: {
		 //       required: " 任课老师不能为空! "
		 //    },
		 //    message: " 请填写任课老师",
		 //    success: "正确"
		 //   },
		 //   lk_sort: {
		 //      rule: {
		 //        required: true
		 //    },
		 //    error: {
		 //       required: " 排序不能为空! "
		 //    },
		 //    message: " 请输入排序!,默认255,数字越小,优先级越高",
		 //    success: "正确"
		 //   }
		 // })   
		});
	</script>
</body>
</html>